<?php


namespace fastflow\lib;


class config
{
    
    public static function getConfig($key)
    {
        $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'config.php';
        if (!file_exists($file)) {
            return -1;
        }
        $config = require($file);
        return $config[$key] ?? null;
    }
}